package com.example.demo.service.impl;

import com.example.demo.dao.ProductCategoryDao;
import com.example.demo.entity.ProductCategory;
import com.example.demo.service.ProductCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2018/6/9 0009.
 */
@Service
public class ProductCategoryServiceImpl implements ProductCategoryService {

    @Autowired
    private ProductCategoryDao productCategoryDao;


    @Override
    public ProductCategory findByName(String name) {
        return productCategoryDao.findByName(name);
    }
}
